﻿package net.wangit.jdbc.type;

import net.wangit.jdbc.Type;
import net.wangit.jdbc.database.Database;
import net.wangit.jdbc.sqltype.SqlType;
/**
 * SQL数据类型操象类
 * 
 * @author watson
 * Feb 12, 2010
 */
public abstract class AbstractType implements Type {

	public AbstractType() {
	}

	public SqlType toSqlType(Database database) {
		return database.getSqlType(code());
	}

	public String getSqlTypeName(Database database) {
		return database.getSqlTypeName(code());
	}
}
